package com.qf.forum.service;

import com.qf.base.result.R;
import com.qf.forum.dto.ForumDTO;
import com.qf.forum.dto.ForumInsertUserDTO;
import com.qf.forum.dto.ForumUrlDTO;
import com.qf.forum.dto.ForumUserDTO;
import com.qf.forum.model.Forum;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ForumService {
    boolean insert(Long userId, ForumDTO forumDTO);

    R selectforum(Integer page, Integer limit);
    //查看论坛信息
    R selecforumuser(ForumUserDTO forumUserDTO);

    R insertforumuser(Long userId, ForumInsertUserDTO forumInsertUserDTO);

    boolean insert(Long userId, MultipartFile file, ForumUrlDTO forumUrlDTO);
}
